package com.yan.yanbi.constant;

/**
 * Redis常量
 *
 * @author yhnyhn123
 * @version 1.0
 * @description
 * @date 2024/3/5 18:15
 */
public interface RedisConstant {
    //缓存空值的时间
    Long CACHE_NULL_TTL = 10L;
    //图表缓存7天
    Long CACHE_CHART_TTL = 7L;

    //用户缓存对应页码数据，该常量+用户id作为缓存key
    String CACHE_USER_PAGE = "yanbi:user:page:";

    //页码和每页大小作为field
    String CACHE_PAGE_ARG = "yanbi:page:arg:";
}
